package org.nanfang.Yield.Join;

public class MainJoin {
    public static void main(String[] args) throws InterruptedException {
        Join mt = new Join("线程一");
        Join mt1 = new Join("线程二");


        mt.start();
        mt1.start();

        mt.join();
        mt1.join();
        for (int i = 0; i<100 ;i++){
            System.out.println("主线程");
        }
    }
}
